<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@include file="template/header.jsp"%>
<%@include file="template/navigation.jsp"%>
<%@include file="template/menu.jsp"%>
<div>
	<form:form method="POST" commandName="surveillant">
		<table>
			<tr>
				<td>Nom :</td>
				<td><form:input path="nom" class="form-login" /></td>
			</tr>
			<tr>
				<td>Prénom :</td>
				<td><form:input path="prenom" class="form-login" /></td>
			</tr>
			<tr>
				<td>Téléphone :</td>
				<td><form:input path="tel" class="form-login" /></td>
			</tr>
			<tr>
				<td>E-mail :</td>
				<td><form:input path="mail" class="form-login" /></td>
			</tr>
			<tr>
				<td>Service :</td>
				<td><form:input path="service" class="form-login" /></td>
			</tr>
			<tr>
				<td>Résident:</td>
				<td><form:radiobutton type="radio" name="type" path="type"
						value="Resident"
						onClick="disableIt(this.form.type, this.form.resp)" /></td>
				<td>
			</tr>

			<tr>
				<td>Enseignant:</td>
				<td><form:radiobutton type="radio" name="type" path="type"
						value="Enseignant"
						onClick="disableIt(this.form.type, this.form.resp)" /></td>
				<td>
			</tr>
			<tr>
				<td>Cadre :</td>
				<td><form:select path="cadre" class="form-login" id="cadre">
						<form:option value="NONE" label="cadre"  />
						<form:option value="chirurgien">Chirurgien</form:option>
						<form:option value="reanimateur">Réanimateur</form:option>
					</form:select></td>
			</tr>
			<tr>
				<td><b>Responsable d'une matière:</b></td>
				<td><label><form:radiobutton type="radio" name="resp" path="isRespMatiere"
							value="true" id="respY" 
							onClick="disableIt(this.form.type, this.form.resp)"/>oui</label> 
							<label><form:radiobutton type="radio" name="resp"
							path="isRespMatiere" value="false" id="respN" 
							onClick="disableIt(this.form.type, this.form.resp)" />non</label></td>
			</tr>
			<tr>
				<td>Matière :</td>
				<td><form:select path="matiere" class="form-login" id="matiere" >
						<form:option value="NONE" label="matiere" />
						<form:options items="${matiereList}" />
					</form:select></td>
			</tr>
			<tr>
				<td><b>Chef de service:</b></td>
				<td><label><form:radiobutton path="isChefService"
							value="true" id="chefY" />oui</label> <label><form:radiobutton
							path="isChefService" value="false" id="chefN" />non</label></td>
			</tr>
		</table>
		<div>
			<input type="submit" class="large button blue"
				style="margin-left: 250px; margin-top: 50px;">
		</div>
	</form:form>
</div>
<%@include file="template/footer.jsp"%>

